using UnityEngine;

public class CoinsController : MonoBehaviour
{
	public void SetDefaultCoins()
	{
		PlayerPrefs.SetInt("coins", 0);
	}

	public int GetCurrentCoins()
	{
		return PlayerPrefs.GetInt("coins", 0);
	}

	public void SubstractCoins(int c)
	{
		PlayerPrefs.SetInt("coins", GetCurrentCoins() - c);
	}

	public void AddCoins(int c)
	{
		PlayerPrefs.SetInt("coins", GetCurrentCoins() + c);
	}
}
